package cn.assumejson.springframework.aop.support;

import org.aopalliance.aop.Advice;

/**
 * @author gang.Li
 * @version 1.0
 * @since 1.0 2021/12/9 20:44
 */
public abstract class AbstractGenericPointcutAdvisor extends AbstractPointcutAdvisor {

    private Advice advice = new Advice() {
    };

    public void setAdvice(Advice advice) {
        this.advice = advice;
    }

    @Override
    public Advice getAdvice() {
        return this.advice;
    }

    @Override
    public String toString() {
        return getClass().getName() + ": advice [" + getAdvice() + "]";
    }

}
